@import "Normalize";
@import "base";
@import "font";

// common header style start
#page-header {
  .header-left {
    float: left;
    h1 {
      margin: 0;
      display: inline-block;
      font-size: 16px;
      font-weight: 200;
      a {
        display: block;
        color: #ffffff;
        line-height: 45px;
        padding-left: 10px;
        font-size: 12px;
      }
    }
  }
  .header-right {
    float: right;
    margin-top: 15px;
    .notification{
      display: inline-block;
    }
    div.user-area {
      display: inline-block;
      vertical-align: middle;
      padding: 0 25px;
      > div {
        display: inline-block;
      }
      &:before {
        content: '|';
        display: inline-block;
        margin-right: 20px;
      }
      div.username {
        margin-right: 20px;
        span {
          margin-left: 5px;
        }
      }
      div.logout{
        a{
          color: #ffffff;
        }
      }
    }
  }
}

// common header style end

// common aside style start
#page-aside {
  ul {
    padding-top: 50px;
    li {
      > a {
        display: block;
        color: #787e88;
        line-height: 45px;
        padding-left: 20px;
      }
      &.active, &:hover, &:focus {
        > a {
          background: #404855;
          color: #ffffff;
        }
      }
    }
  }
}

// common aside style end

//login page stylesheet start
.login {
  position: relative;
  .login-banner {
    width: 100%;
    height: 400px;
    background: url("/static/image/loginbanner.jpg") no-repeat;
    background-size: 100% 550px;
    position: relative;
    overflow: hidden;
    a.logo {
      position: absolute;
      width: 100px;
      height: 60px;
      left: 60px;
      top: 25px;
      img {
        width: 100%;
      }
    }
    .company {
      position: absolute;
      top: 190px;
      width: 100%;
      color: #ffffff;
      text-align: center;
      .title {
        font-size: 40px;
        font-weight: 400;
        margin: 0 0 20px 0;
      }
    }
    &:before {
      content: '';
      display: block;
      width: 100%;
      height: 400px;
      background: rgba(0, 104, 183, 0.5);
    }
  }
  .login-box {
    box-sizing: border-box;
    width: 320px;
    height: 240px;
    border-radius: 5px;
    position: relative;
    margin: -55px auto 0;
    background: #ffffff;
    box-shadow: 0 0 15px 5px rgba(1, 104, 183, 0.3);
    padding-top: 20px;
    h3.title {
      color: $theme-color;
      text-align: center;
      font-size: 20px;
      font-weight: 200;
      margin: 0;
    }
    .form-group {
      width: 100%;
      text-align: center;
      position: relative;
      margin: 10px 0;
      .form-icon {
        position: absolute;
        left: 35px;
        top: 12px;
        color: $theme-color;
      }
      input.login-input {
        width: 230px;
        border: 1px solid $border-color;
        height: 35px;
        padding-left: 35px;
        border-radius: 3px;
        &::-webkit-input-placeholder {
          color: #bcbcbc;
        }
      }

      .login-btn {
        width: 270px;
        height: 35px;
        margin: 12px auto;
        background: $theme-color;
        border-radius: 3px;
        text-align: center;
        color: #ffffff;
        border: 1px solid $theme-color;
        outline: none;
      }
    }
    .rempsd {
      text-align: left;
      color: #666666;
      margin-top: 15px;
      label {
        margin-left: 25px;
        input[type='checkbox'] {
          margin-right: 5px;
          width: 14px;
          height: 14px;
        }
      }
    }

  }
}
//login page stylesheet end

//index page stylesheet start
.feature {
  background: #ffffff;
  margin-bottom: 20px;
  height: 160px;
  overflow: hidden;
  .feature-left{
    float: left;
    .img-wrapper {
      display: inline-block;
      text-align: center;
      width: 160px;
      height: 160px;
      overflow: hidden;
      img {
        width: 100%;
      }
    }
    .sys-wrapper {
      width: 550px;
      height: 160px;
      overflow: hidden;
      display: inline-block;
      vertical-align: top;

      H4.sys-time {
        font-weight: 200;
        color: $theme-color;
        letter-spacing: 1px;
      }
      div.sys-title {
        font-size: 12px;
        width: 225px;
        float: left;
        white-space: nowrap;
        overflow: hidden;
        line-height: 30px;
        color: #7a7a7a;
        span.sys-content {
          color: $theme-color;
          margin-left: 5px;
        }
      }
    }
  }

  .sys-state {
    float: right;
  }

}

ul.index-nav {
  float: left;
  width: 100%;
  li {
    float: left;
    margin-left: 10px;
    margin-bottom: 10px;
    width: 32.7%;
    height: 125px;
    min-width: 350px;
    background: #ffffff;
    &.nav-link {
    a {
      display: block;
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
    transition:all 1s;
    -moz-transition:all 1s; /* Firefox 4 */
    -webkit-transition:all 1s; /* Safari and Chrome */
    -o-transition:all 1s; /* Opera */
    :hover .icon-wrapper{
      -webkit-transform:scale(1.2);
      -moz-transform:scale(1.2);
      -o-transform:scale(1.2);
    }

  }
    div.link-content {
      border-left: 6px solid #80d8ff;
      box-sizing: border-box;
      height: 100%;
      overflow: hidden;
      div.left-wrapper {
        float: left;
        padding-left: 29px;
        height: 100%;
        h2 {
          font-size: 18px;
          font-weight: 200;
          margin: 70px 0 10px 0;
          color: #333333;
        }
        span {
          color: #999999;
        }
      }
      div.right-wrapper {
        float: right;
        width: 60%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        .icon-wrapper {
          width: 150px;
          height: 90px;
          border-radius: 4px;
          background: #80d8ff;
          text-align: center;
          .icon {
            display: inline-block;
            vertical-align: middle;
            line-height: 90px;
            font-size: 70px;
            color: rgba(255, 255, 255, 0.7);
          }
        }
      }
    }
    &:nth-child(3n+1) {
      margin-left: 0;
    }
    &:nth-child(2) {
      div.link-content {
        border-color: #69c8bd;
        .right-wrapper{
          .icon-wrapper {
            background: #69c8bd;
          }
        }

      }
    }
    &:nth-child(3) {
      div.link-content {
        border-color: #f4d360;
        .right-wrapper{.icon-wrapper {
          background: #f4d360;
        }}

      }

    }
    &:nth-child(4) {
      div.link-content {
        border-color: #ee7958;
        .right-wrapper{
          .icon-wrapper {
            background: #ee7958;
          }
        }

      }

    }
    &:nth-child(5) {
      div.link-content {
        border-color: #4e96ee;
        .right-wrapper{
          .icon-wrapper {
            background: #4e96ee;
          }
        }

      }

    }
    &:nth-child(6) {
      div.link-content {
        border-color: #5c6bc0;
        .right-wrapper{
          .icon-wrapper {
            background: #5c6bc0;
          }
        }

      }

    }
  }
  li.chart-area{
    height: 282px;
    .chart-wrapper{
      width: 100%;
      height: 100%;
      overflow: hidden;
      position: relative;
      .fan-wrapper{
        width: 320px;
        height: 200px;
        position: absolute;
        left: 50%;
        top:50%;
        margin-left: -160px;
        margin-top: -100px;
        cursor: pointer;
        div.icon-wrapper{
          width: 100px;
          height: 100px;
          display: inline-block;
          vertical-align: top;
          .icon-fan{
            font-size: 90px;
            color: #999999;
          }
          &.active{
            .icon-fan{
              color: #64b5f6;
            }
          }
        }
      }

    }
  }
}

//index page stylesheet end


.table-caption,.form-caption{
  font-size: 18px;
  font-weight: 400;
  color: #333333;
  padding: 10px;
  margin-top: 30px;
  border-bottom: 1px solid $border-color;
}
.link{
  color: $theme-color;
  cursor: pointer;
}
.OK,.FAIL{
  padding: 10px;
  display: inline-block;
  white-space: nowrap;
}
.OK{
  background: #C5FFB8;
}
.FAIL{
  background: #eb6864;
}
